package com.turbo.boot.crawler.dao.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.turbo.boot.crawler.dao.entity.CrawlerResultEntity;
import com.turbo.framework.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 测试CURD
 */
public interface CrawlerResultMapper extends BaseMapper<CrawlerResultEntity> {


    @Select("<script>" +
            " SELECT" +
            "   * " +
            "   FROM " +
            "   crawler_result " +
            "        <where>" +
            "            ${ew.sqlSegment} " +
            "        </where>" +
            "</script>")
    Page<CrawlerResultEntity> page(@Param("page") Page<CrawlerResultEntity> page, @Param(Constants.WRAPPER) QueryWrapper<CrawlerResultEntity> queryWrapper);

}
